<?php
/**
 * Bootstrap file for Jabberdrive, loads all the required classes on startup.
 * 
 * @author Gustav Knutsson
 */
if(!defined("ROOT_PATH")){
	die("<b>jdError:</b> Where am I? ROOT_PATH needs to be defined");
}

// Require the config file
require_once ROOT_PATH.'config.php';

if(DATABASE_TYPE == "xml"){
	// Require the jdDatabase class.
	require_once ROOT_PATH.'jdDatabase/jdDatabase.php';
}else if(DATABASE_TYPE == "mysql"){
	// Require the jdDatabase_mysql class
	require_once ROOT_PATH.'jdDatabase/jdDatabase_mysql.php';
}
// Require the jdNetworkMessage object.
require_once ROOT_PATH.'jdNetwork/jdNetworkMessage.php';

// Require the network meta handler
require_once ROOT_PATH.'jdNetwork/jdNetworkMeta.php';

//Get the jddfs object.
require_once ROOT_PATH.'jdStorage/jdDFS.php';

// Get the filewriter object.
require_once ROOT_PATH.'jdStorage/filewriter.php';

// Load the insert_post class
require_once ROOT_PATH.'jdCommunication/insert_post.php';

// Load the storage object
require_once ROOT_PATH.'jdStorage/jdStorage.php';
?>